from django.forms import Form,FileField,CharField
from django import forms

class AnalyseA2lS19ChooseForm(Form):
    old_a2l_file = FileField(label='选择老的A2L', allow_empty_file=False)
    old_s19_file = FileField(label='选择老的S19', allow_empty_file=False)
    new_a2l_file = FileField(label='选择新的A2L', allow_empty_file=False)
    new_s19_file = FileField(label='选择新的S19', allow_empty_file=False)

class AnalyseA2lS19VarForm(Form):
    vartext = CharField(
        widget=forms.Textarea(
            attrs={"rows": 40, "col": 40, "style": "width: 614px; height: 592px;"}
        ),
        label="变量名称 (每个变量单独占一行)",
    )